﻿using System;
using System.ComponentModel.DataAnnotations;

namespace QuDao
{
	/// <summary>
    /// 
    /// </summary>
	public class SysUserDto
	{
		/// <summary>
		/// 用户ID
		/// </summary>
		public int UserID { get; set; }

		/// <summary>
		/// 登录账号
		/// </summary>
		[StringLength(20, MinimumLength =2, ErrorMessage ="登录账号长度必须在2-20之间")]
		[Required]
		public string UserName { get; set; }
		
		/// <summary>
		/// 角色ID：-1表示超级管理员
		/// </summary>
		public int RoleID { get; set; }

        /// <summary>
        /// 用户类型：1-平台，2-租户
        /// </summary>
        public int UserType { get; set; }

		/// <summary>
		/// 租户ID
		/// </summary>
		public int TID { get; set; }

		///// <summary>
		///// 门店ID
		///// </summary>
  //      public long ShopID { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }

		/// <summary>
		/// 姓名
		/// </summary>
		public string TrueName { get; set; }
		
		/// <summary>
		/// 备注
		/// </summary>
		public string Memo { get; set; }

		/// <summary>
		/// 登录次数
		/// </summary>
		public int LoginCount { get; set; }

		/// <summary>
		/// 上次登录时间
		/// </summary>
		public DateTime LastLoginTime { get; set; }

		/// <summary>
		/// 状态：0-禁用，1-启用，9-删除
		/// </summary>
		public int Status { get; set; }
	}

	public class SysUserDetailDto : SysUserDto
    {
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime ModifyTime { get; set; }

	}

}